Repository navigation
Expire quiet agents from the MCP presence list - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents now leave the Electroscope window and the
/healthcount after three minutes without a session request. Sending a ping once a minute keeps a waiting agent visible. A later tool call or ping restores the agent under its existing session ID during the 30-minute session retention period.The window still shows a quiet agent as idle after 90 seconds. Explicit disconnects remove it immediately, and a closed event stream has ten seconds to reconnect.
Discussion on r/mcp
Windows desktop
The same POST-only client, three minutes after its last request.
Testing
Windows 11 on Minis, Node 24. Typecheck, 58 tests, the build, and all 27 synthetic-camera end-to-end checks passed. Checked expiry and renewal over HTTP for clients with and without an event stream. In the desktop app, a POST-only client went idle, disappeared, returned on a ping with the original session ID, and left immediately on DELETE.